package ro.myApp.commons.service.exceptions;

/**
 * a customized exception that takes an error key to print some message
 * @author caprice
 *
 */
public class ViewException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2789869667692377779L;
	
	private ErrorKeys key;

	public ViewException(ErrorKeys key) {
		this.key=key;
	}
	
	public String getKey() {
		return key.name();
	}
	
}
